import Mock from 'mockjs' 

 
export default [
  {
    url: '/project/system/sys_params/list',
    type: 'get',
    response: config => { 
      return {
        code: 20000,
        data: { 
          items: [
            {
              id: 1,
              pid: 0,
              pname:'根节点',
              class_name: 'project参数设置',
              name: '_project',
              number_value: '',
              date_value: '',
              time_value: '',
              string_value: '',
              remark: 'project参数设置',
              value: '',
              children: [{
                  id: 11,
                  pid: 1,
                  pname:'project参数设置',
                  class_name: '设置11',
                  name: '_project11',
                  number_value: '1',
                  date_value: '2019/1/1',
                  time_value: '2019/1/1 00:00:01',
                  string_value: 'str',
                  remark: '设置11',
                  value: '数值参数：1，日期参数：2019/1/1，时间参数：2019/1/1 00:00:01，字符串参数：str',
                  children:[{ 
                    id: 111,
                    pid: 11,
                    pname:'设置11',
                    class_name: '设置111',
                    name: '_project111',
                    number_value: '1',
                    date_value: '2019/1/1',
                    time_value: '2019/1/1 00:00:01',
                    string_value: 'str',
                    remark: '设置111',
                    value: '数值参数：1，日期参数：2019/1/1，时间参数：2019/1/1 00:00:01，字符串参数：str',
                  }]
                }, {
                  id: 12,
                  pid: 1,
                  pname:'project参数设置',
                  class_name: '设置12',
                  name: '_project12',
                  number_value: '1',
                  date_value: '2019/1/1',
                  time_value: '2019/1/1 00:00:01',
                  string_value: 'str',
                  remark: '设置12',
                  value: '数值参数：1，日期参数：2019/1/1，时间参数：2019/1/1 00:00:01，字符串参数：str',
                },{
                  id: 13,
                  pid: 1,
                  pname:'project参数设置',
                  class_name: '设置13',
                  name: '_project13',
                  number_value: '1',
                  date_value: '2019/1/1',
                  time_value: '2019/1/1 00:00:01',
                  string_value: 'str',
                  remark: '设置13',
                  value: '数值参数：1，日期参数：2019/1/1，时间参数：2019/1/1 00:00:01，字符串参数：str',
              }]
            }
          ]
        }
      }
    }
  },

  {
    url: '/project/system/sys_params/detail',
    type: 'get',
    response: config => {
      return {
        id: 12,
        menu_name: '角色管理',
        link_url: '@/views/project/system/sys_role/index',
        sort: 0,
        level: 1,
        pid: 1,
        pname: '系统管理'
      }
    }
  }, 

  {
    url: '/project/system/sys_params/create',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  {
    url: '/project/system/sys_params/update',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  {
    url: '/project/system/sys_params/PParamlist',
    type: 'get',
    response: _ =>{
        return {
          code: 20000,
          data:{
            items:[
              {
                id: 1, 
                label: 'project参数设置',
                children: [{
                    id: 11,
                    label: '设置11',
                    children:[{ 
                      id: 111,
                      label: '设置111'
                    }]
                  }, {
                    id: 12,
                    label: '设置12'
                  },{
                    id: 13,
                    label: '设置13'
                }]
              }
            ]
          }
        }
    }
  },

  {
    url: '/project/system/sys_params/delete',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  }
]

